﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<%@ include file="/include/include.jsp" %>

</head>

<body>
	
	<%@ include file="/include/header.jsp" %>

	<%@ include file="/include/menu.jsp" %>
			
	<div id="mainContent">

		<h2><a href="${ctx}/${menu.url}">${menu.description}</a>&nbsp;-&nbsp;<a href="${ctx}/${submenu.url}">${submenu.description}</a></h2>
		
		<div class="tool-bar">
			<div title="${menu.description} - ${empty currViewBarSubMenu_ ? submenu.description : currViewBarSubMenu_.description} - 查询${empty currViewBarSubMenu_ ? submenu.description : currViewBarSubMenu_.description}"  href="${ctx}/report/purchaseexecute/search" class="modal-window modal-link">过滤查询</div>
		</div>
		
		<div class="grid-list">
			<table class="grid" cellspacing="0" url="${ctx}/report/purchaseexecute/list">
				<thead>
					<tr>
						<!--<td><input type="checkbox" name="aaa" onclick="clearAll(this,'idss')"/></td>
						--><td>PO单号</td>
						<td>ASC代码</td>
						<td>ASC简称</td>
						<td>区域</td>
						<td>订单日期</td>
						<td>总数量</td>
						<td>自动匹配数量</td>
						<td>手动匹配数量</td>
						<td>总匹配数量</td>
						<td>自动完成百分比(%)</td>
						<td>全部完成百分比(%)</td>
					</tr>
				</thead>
				<tbody>
					<c:forEach var="po" items="${purchaseOrders}">
						<tr onmouseover="this.style.backgroundColor= '#A0CFEC'" onmouseout="this.style.backgroundColor= '#ffffff'" ${po.percentage < 100 ? 'class="err"' : '' }>
							<!--<td><input type="checkbox" name="idss"  value="${po.id}"/></td>
							--><td><a href="${ctx}/purchase/purchasedetails/${po.id}" >${po.orderNumber}</a></td>
							<td>${po.maintenanceStation.number}</td>
							<td>${po.maintenanceStation.name}</td>
							<td>${po.maintenanceStation.region.name }</td>
							<td>
								<fmt:formatDate value="${po.orderDate}" pattern="yyyy-MM-dd"/>
							</td>
							<td><b>${po.sumNumber }</b></td>
							<td><font color = "green"><b>${po.autoDeliveryNumber }</b></font></td>
							<td><font color = "red"><b>${po.manualGenericDeliveryNumber}</b></font></td>
							<td><b>${po.autoDeliveryNumber +  po.manualGenericDeliveryNumber}</b></td>
							<td><font color = "green"><b>${po.autoPercentage }</b></font></td>
							<td><b>${po.sumPercentage }</b></td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
			<t:page action="${ctx}/report/purchaseexecute/list" />
		</div>
	</div>
	
	<%@ include file="/include/script.jsp" %>

</body>

</html> 